﻿<MContainer Fluid>
    <MTextarea Counter="true"
               Label="Text"
               Rules="_rules"
               @bind-Value="_value">
    </MTextarea>
</MContainer>

@code {
    private string _value = "Hello!";
    private List<Func<string, StringBoolean>> _rules = new()
        {
            v => v.Length <= 25 ? true : "Max 25 characters"
        };
}